﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/axios.min.js"></script>
    <script>
        function getDataUserinfoAll(){
            axios.get('/userinfo/queryAll')
            .then(function (response){
                console.log(response.data);
            })
            .catch(function (error){
                console.log(error);
            });
        }

    </script>
</head>
<body>
<form method="post" action="/userinfo/save">
    账号:<input type="text" name="name"/><br/>
    密码:<input type="text" name="password"/><br/>
    年龄:<input type="text" name="age"/><br/>
    班级:<input type="text" name="aclass"/><br/>
    <input type="submit" value="提交">
</form>
<form  method="post">
    输入要删除的账号id<input type="text" method="post" action="/userinfo/del"  name="id"/>
    <input type="submit" value="提交">
</form>
<form>
    <hr>
    输入删除的姓名<a  href="/userinfo/del1?name=狗蛋">自定义删除狗蛋</a>
    <hr>
    <input type="button" value="获取数据" onclick="getDataUserinfoAll()"/>

</form>
</body>
</html>